package com.sf.fy.uav.user.rest;

import com.sf.fy.uav.user.service.IRewardBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author LTQ
 * @since 2023-08-24
 */
@RestController
@RequestMapping("/sys/reward-bill")
public class RewardBillRest {

    @Autowired
    private IRewardBillService iRewardBillService;

    public BigDecimal getTotalDailyWithdrawal() {
        return iRewardBillService.getTotalDailyWithdrawal();
    }

    public BigDecimal getDailyWithdrawalByUserId(String userId) {
        return iRewardBillService.getDailyWithdrawalByUserId(userId);
    }
}
